package com.hongxun.modules.api.service.impl;

import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.hongxun.modules.api.dao.BBudgetItemDao;
import com.hongxun.modules.api.entity.BBudgetItemEntity;
import com.hongxun.modules.api.service.BBudgetItemService;



@Service("bBudgetItemService")
public class BBudgetItemServiceImpl implements BBudgetItemService {
	@Autowired
	private BBudgetItemDao bBudgetItemDao;
	
	@Override
	public BBudgetItemEntity queryObject(String guid){
		return bBudgetItemDao.queryObject(guid);
	}
	
	@Override
	public List<BBudgetItemEntity> queryList(Map<String, Object> map){
		return bBudgetItemDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bBudgetItemDao.queryTotal(map);
	}
	
	@Override
	public void save(BBudgetItemEntity bBudgetItem){
		bBudgetItem.setGuid(UUID.randomUUID().toString());
		bBudgetItemDao.save(bBudgetItem);
	}
	
	@Override
	public void update(BBudgetItemEntity bBudgetItem){
		bBudgetItemDao.update(bBudgetItem);
	}
	
	@Override
	public void delete(String guid){
		bBudgetItemDao.delete(guid);
	}
	
	@Override
	public void deleteBatch(String[] guids){
		bBudgetItemDao.deleteBatch(guids);
	}
	
}
